package com.titan.demo.camel.sample.eip.split.对数据循环;

import com.titan.demo.camel.utils.Context;

public class DemoMain {

	public static void main(String[] args) {
		try {
			Context.initSpring("com/titan/demo/camel/sample/eip/split/对数据循环/spring/ApplicationContext.xml");
			
			String[] data = new String[5];
			for (int i = 0; i < 5; i++) {
				data[i] = "值【"+i+"】";
			}
			Context.send("camel-1", "direct:start", data);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
